package dq.study.designmodel.proxy.statics;

import dq.study.designmodel.proxy.Moving;
import dq.study.designmodel.proxy.Tank;

/**
 * @author dongqun
 * @Description: 测试静态代理
 * @date 2019/3/30 22:33
 */
public class Client {
    public static void main(String[] args){
        //继承方式
        System.out.println("---------继承方式--------");
        InheritProxyTank inheritProxy = new InheritProxyTank();
        inheritProxy.move();


        //继承方式
        System.out.println("---------聚合方式--------");
        Tank tank = new Tank();
        Moving moving = new AggregateProxyTank(tank);
        moving.move();

    }

}
